package com.zkc.blog.controller.admin;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 后台页面访问控制器
 * @author Administrator
 */
@RequestMapping("admin")
@Controller
public class AdminController {

	@RequestMapping()
	public String admin(Model mv){
		return "redirect:/admin/";
	}
	@RequestMapping("/")
	public String admin2(Model mv){
		return "admin/admin-index";
	}
	@RequestMapping("/blogPage")
	public String blogPage(Model mv){
		return "admin/blogPage";
	}
	@RequestMapping("/pubBlog")
	public String pubBlog(Model mv){
		return "admin/pubBlog";
	}
	@RequestMapping("/catePage")
	public String blogCatePage(Model mv){
		return "admin/catePage";
	}
	@RequestMapping("/userPage")
	public String userPage(Model mv){
		return "admin/userPage";
	}
	@RequestMapping("/commentPage")
	public String commentPage(Model mv){
		return "admin/commentPage";
	}
}
